<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	var c = 3;
	var obj = {
		a:1,
		b:2,
		c,// 将变量c的名字作为属性名，变量c的值作为属性值
		fn(){
		
		}
	};
	console.log(obj);
	
	// 同质化
	var arr = [1,2,3,4];
	// var a = arr[0];
	// var b = arr[1];
	// var c = arr[2];
	// var d = arr[3];
	var [a,b,c,d] = arr;
	
	
</script>
</html>